package entity;

public enum Result {
    SUCCESS_INSERT_KEY("The insert key command was successful executed"),
    SUCCESS_DELETE_KEY("The delete key command was successful executed"),
    SUCCESS("The command was successful executed"),
    KEY_NOT_EXIST("Key not existed"),
    KEY_EXIST("Key already exists"),
    KEY_NOT_TYPE("Key not this type"),
    LiST_EMPTY("The key list is empty"),
    ERROR("Command not supported");

    private String responseData;

    private Result(String data){
        this.responseData=data;
    }

    public static String SuccessInsertKey(){
        return SUCCESS_INSERT_KEY.responseData;
    }
    public static String SuccessDeleteKey(){
        return SUCCESS_DELETE_KEY.responseData;
    }
    public static String KeyNotExist(){
        return KEY_NOT_EXIST.responseData;
    }
    public static String KeyExist(){
        return KEY_EXIST.responseData;
    }
    public static String Error(){
        return ERROR.responseData;
    }

    public static String ListEmpty() {
        return LiST_EMPTY.responseData;
    }

    public static String Success() {
        return SUCCESS.responseData;
    }

    public static String KeyNotType(){
        return KEY_NOT_EXIST.responseData;
    }
}
